package tech.wetech.admin3.sys.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import tech.wetech.admin3.sys.model.AooAnotherMe;
import tech.wetech.admin3.sys.model.AooAnotherSomeone;

import java.util.List;
import java.util.UUID;

public interface AooAnotherMeRepository extends JpaRepository<AooAnotherMe, Integer> {
  List<AooAnotherMe> findByEmail(String email);

  List<AooAnotherMe> findByStatus(Integer status);

  List<AooAnotherMe> findByDigitalNameContaining(String digitalName);

  List<AooAnotherMe> findByOwnerIdNoAndDigitalName(String name, String digitalName);  // 查询虚拟人名字+对应自然人姓名

  List<AooAnotherMe> findByEmailAndDigitalName(String email, String digitalName);

  AooAnotherMe findByOutTradeNo(String outTradeNo);

  List<AooAnotherMe> findByPaid(boolean paid);

  AooAnotherMe findByUuid(UUID uuid);

  List<AooAnotherMe> findByImageHashesContaining(String hash);

  List<AooAnotherMe> findByModelFileHashesContaining(String hash);
}
